from constants import *
from window import *
from map import *
from text import *
from snake import *
from food import *
from startpage import *
import pygame, sys
from pygame.locals import *

import random

# 初始化 pygame
pygame.init()
# 窗口图标
img = pygame.image.load("BS.ico")
pygame.display.set_icon(img)
# 窗口创建
Screen = WINDOW(WIDTH, HEIGHT, "Greedy snake") # 宽 高 标题
screen = Screen.createWindow()
screen.fill(backgroundColor)

# 开始界面
startPage(screen)